#include "TRoutines.h"


SDL_Surface *RenderTTF(TTF_Font *font, const char *txt, SDL_Color color, TextMode mode)
{
    switch (mode)
    {
        case (TextMode::SOLID):
            return TTF_RenderText_Solid(font, txt, color);
            break;

        case (TextMode::SHADED):
            return TTF_RenderText_Shaded(font, txt, color, {83, 220, 49});
            break;

        case (TextMode::BLENDED):
            return TTF_RenderText_Blended(font, txt, color);
            break;

        default:
            return nullptr;
            break;
    }
}
